package com.xuecheng.api.media;

import com.xuecheng.api.media.model.dto.MediaDTO;
import com.xuecheng.api.media.model.qo.QueryMediaModel;
import com.xuecheng.api.media.model.vo.MediaVO;
import com.xuecheng.common.domain.page.PageRequestParams;
import com.xuecheng.common.domain.page.PageVO;
import com.xuecheng.common.domain.response.RestResponse;
import feign.Param;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * <p></p>
 *
 * @Description:
 */
@Api(value = "媒资管理", tags = "媒资管理API",description = "对媒资信息进行管理")
public interface MediaApi {

    @ApiOperation("保存媒资信息")
    MediaDTO createMedia(MediaVO mediaVO);

    @ApiOperation("获取媒资信息列表")
    PageVO<MediaDTO> queryMediaPage(PageRequestParams param ,QueryMediaModel queryMediaModel);

    @ApiOperation("获取媒资信息列表")
    PageVO<MediaDTO> queryMediaPageM(PageRequestParams param ,QueryMediaModel queryMediaModel);

    @ApiOperation("预览媒资信息功能")
    String getMedia(Long  mediaId);

    @ApiOperation("预览媒资信息功能")
    String getMMedia(Long  mediaId);

    @ApiOperation("预览媒资信息功能")
    boolean deleteMediaById(Long mediaId);

    @ApiOperation("预览媒资信息功能")
    RestResponse<MediaDTO> getMedia4s(@PathVariable  Long mediaId);

    @ApiOperation("媒资审核功能")
    boolean modifyMediaAudit( MediaVO mediaVO) ;

}
